<%@page import="java.util.List"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<!DOCTYPE html>
<%@ include file="/WEB-INF/view-system/include/myTaglib.jsp"%>

<html>
<head>
	<title>员工信息页面</title>
	<script src="${ctxStaticSystem }/js/staff/staff.js" type="text/javascript" ></script>
	<link href="${ctx}/static-system/css/staff/staff.css" rel="stylesheet" type="text/css"/>
</head> 
<body>
<!-- 修改员工 -->
<tags:ajax id="updateStaffAjax" url="${ctx }/sys/staffMgr/updateStaff" autoSend="false" contentType="application/x-www-form-urlencoded"
		   formQuery="#updateStaffFrm"
		   formSubmit="true" type="post" onSuccess="onUpdateSucc"/>
	
<%--修改员工信息--%>
		<form action="" id="updateStaffFrm">
			<div class='form-horizontal'>
				<div class="form-group">
					<div class="col-sm-12 outr">
						<div class="col-md-3 iname">
							<span>员工姓名：</span>
						</div>
						<div class="col-md-9">
							<input id="staffName2" name="staffName" type="text" class="inputC form-control" required="required"  value="${requestScope.sysStaffVO.staffName }">
						</div>
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-12 outr">
						<div class="col-md-3 iname">
							<span>登录密码：</span>
						</div>
						<div class="col-md-9">
							<input placeholder="仅需要修改密码时填写" id="staffPwd2" name="staffPsw" type="text" class="inputC form-control">
						</div>
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-12 outr">
						<div class="col-md-3 iname">
							<span>所属机构：</span>
						</div>
						<div class="col-md-9">
							<div class="input-group">
								<input  id="staffNetId2"   name="orgId" type="hidden" class="form-control" required="required" value="${requestScope.sysStaffVO.orgId }">
								<input style="width: 80%" id="staffNetName2" name="staffOrgName" type="text" readonly="readonly" class="form-control" data-toggle="tooltip" value="${requestScope.sysStaffVO.staffOrgName }">
								<span class="input-group-btn" style="float:left">
									<button class="btn btn-warning" type="button" onclick="btnEvents.alertTree('2')">选择</button>
								</span>
							</div>
						</div>
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-12 outr">
						<div class="col-md-3 iname">
							<span>用户编号：</span>
						</div>
						<div class="col-md-9">
							<input name="staffId" type="text" class="inputC form-control" readonly required="required" value="${requestScope.sysStaffVO.staffId }">
						</div>
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-12 outr">
						<div class="col-md-3 iname">
							<span>状&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;态：</span>
						</div>
						<div class="col-md-9">
								<%--<input name="state" type="text" class="inputC form-control" required="required">--%>
							<select id="state" name="state" class="inputC form-control" data-value="${requestScope.sysStaffVO.state }">
								<option value="1">正常</option>
								<option value="0">禁用</option>
							</select>
						</div>

					</div>
				</div>
			</div>
			<div style="text-align: center;">
				<button class="btn btn-primary m-btn" onclick="btnEvents.commitUpdateStaff()">提交</button>
				<button type="reset" class="btn btn-default m-btn" data-dismiss="modal">取消</button>
			</div>
		</form>
</body>
	
</html>